package RateModel

import (
	"time"
)

type CnyUsd struct {
	ID          uint64    `gorm:"primaryKey;autoIncrement"`
	Rate        string    `gorm:"type:varchar(191);not null;comment:汇率"`
	RateTime    string    `gorm:"type:varchar(191);not null;comment:汇率时间戳"`
	RateDate    time.Time `gorm:"type:datetime(3);default:null;comment:汇率日期"`
	CreatedTime time.Time `gorm:"type:datetime(3);default:null"`
	UpdatedTime time.Time `gorm:"type:datetime(3);default:null"`
	CreatedBy   string    `gorm:"type:longtext"`
	UpdatedBy   string    `gorm:"type:longtext"`
}

// TableName 设置表名
func (CnyUsd) TableName() string {
	return "cny_usd"
}
